package stone;

import java.util.List;

import stone.ast.ASTList;
import stone.ast.ASTree;

public class WhileStmnt extends ASTList {

	public WhileStmnt(List<ASTree> c) { super(c); }
	public ASTree condition() { return child(0); }
	public ASTree body() { return child(1); }
	public String toString() {
		return "(while " + condition() + " " + body() + ")";
	}
}
